package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mz.mattress.api.entity.MemberBalanceRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberBalanceRecordMapper extends BaseMapper<MemberBalanceRecord> {

    @Select("select * from mz_member_balance_record where cash_id=#{cashId}")
    MemberBalanceRecord selectByCashId(@Param("cashId") String cashId);

    Page<MemberBalanceRecord> listPage(Page page,
                          @Param("memberId") Long memberId,
                          @Param("startTime") String startTime,
                          @Param("endTime") String endTime);


}
